package com.heima.behavior.controller;


import com.heima.behavior.service.ApArticleDislikeService;
import com.heima.model.behavior.dtos.UnLikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/un_likes_behavior")
@RequiredArgsConstructor
public class DislikeController {

    private final ApArticleDislikeService apArticleDislikeService;

    @PostMapping
    public ResponseResult unLikeApArticle(@RequestBody UnLikesBehaviorDto dto) {
        return apArticleDislikeService.dislikeApArticle(dto);
    }
}
